<?php
/**
 * Campain Object
 * 
 */
use Shama\Campain;
$xview = Xview::instance();
$id = isset($params['campainid']) ? $params['campainid'] : $xview->val('campainid');
if(empty($id))
{
	$xview->accessDenied();
}
try {
	$obj = new Campain($id);
	return $obj;
}
catch (Fox\Object\Exception\NotExist $e)
{
	$xview->accessDenied();
}